package com.ly.heart.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.ly.common.core.domain.ActCurrentTaskVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@ApiModel(value="检验单返回Vo")
@JsonInclude(JsonInclude.Include.ALWAYS)
@Accessors(chain = true)
public class KingCheckVo {

    @ApiModelProperty("检验单id")
    private String id;

    @ApiModelProperty ("单据编号")
    private String docCode;

    @ApiModelProperty ("单据类型")
    private String docType;

    @ApiModelProperty ("单据日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date docTime;

    @ApiModelProperty ("源单类型")
    private String sourceType;

    @ApiModelProperty ("源单Id")
    private String sourceId;

    @ApiModelProperty ("源单物料明细Id")
    private String sourceMaterialDetailId;

    @ApiModelProperty ("行号")
    private String lineNumber;

    @ApiModelProperty ("批号")
    private String batchNum;

    @ApiModelProperty ("物料明细Id")
    private String materialDetailId;

    @ApiModelProperty ("物料Id")
    private String materialId;

    @ApiModelProperty ("物料编码")
    private String materialCode;

    @ApiModelProperty ("物料名称")
    private String materialName;

    @ApiModelProperty ( "规格型号" )
    private String model;

    @ApiModelProperty ("质检状态")
    private String checkStatus;

    @ApiModelProperty ( "检验数量" )
    private String checkNum;

    @ApiModelProperty ("检验结果")
    private String checkResult;

    @ApiModelProperty ("单位")
    private String unit;

    @ApiModelProperty ("单位名称")
    private String unitName;

    @ApiModelProperty ("创建人")
    private String createBy;

    @ApiModelProperty ("创建时间")
    @JsonFormat ( pattern = "yyyy-MM-dd" )
    private Date createTime;

    @ApiModelProperty ("状态")
    private String state;

    @ApiModelProperty ("状态名称")
    private String stateName;

    @ApiModelProperty ( "流程实例id" )
    private String instanceId;

    @ApiModelProperty ( "当下审批人" )
    private String approvedUser;

    @ApiModelProperty ( "审批内容" )
    private String remark;

    @ApiModelProperty ( "当前任务信息" )
    private ActCurrentTaskVo currentTask;

    @ApiModelProperty ("是否推送金蝶")
    private Integer isSend;


}
